#include <stdio.h>
#include <conio.h>
#include <math.h>

double f(double);
double Integral(double, double, int);

void main()
{
  printf("\n Integral=%g", Integral(1,2.2,50));
  getch();
};

double f(double x)
{
  return sqrt(1.5*x+0.6)/(1.6+sqrt(0.8*x*x+2));
};

double Integral(double a, double b, int n)
{double S,x,h;
 int i;
   h=(b-a)/n;
   S=0;
   x=a;
   for(i=0; i<=n-1; i++)
   {
     S=S+h/2*(f(x)+f(x+h));
     x=x+h;
   };
   return S;
};
